(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";

(function () {
  function r(e, n, t) {
    function o(i, f) {
      if (!n[i]) {
        if (!e[i]) {
          var c = "function" == typeof require && require;
          if (!f && c) return c(i, !0);
          if (u) return u(i, !0);
          var a = new Error("Cannot find module '" + i + "'");
          throw a.code = "MODULE_NOT_FOUND", a;
        }

        var p = n[i] = {
          exports: {}
        };
        e[i][0].call(p.exports, function (r) {
          var n = e[i][1][r];
          return o(n || r);
        }, p, p.exports, r, e, n, t);
      }

      return n[i].exports;
    }

    for (var u = "function" == typeof require && require, i = 0; i < t.length; i++) {
      o(t[i]);
    }

    return o;
  }

  return r;
})()({
  1: [function (require, module, exports) {
    "use strict";

    loader.define(function (require, exports, module) {
      var pageview = {
        init: function init() {
          this.listInit();
        },
        listInit: function listInit() {
          // 列表控件 js 初始化: 
          var uiList = bui.list({
            id: "#".concat(module.id, " .bui-scroll"),
            url: "".concat(module.path, "index.json"),
            // 本地测试数据
            pageSize: 5,
            data: {},
            //如果分页的字段名不一样,通过field重新定义
            field: {
              page: "page",
              size: "pageSize",
              data: "data"
            },
            callback: function callback(e) {},
            template: function template(data) {
              var html = "";
              data.forEach(function (el, index) {
                html += "<li class=\"bui-btn bui-box\">\n                            <div class=\"bui-thumbnail\"><img src=\"".concat(el.image, "\" alt=\"\"></div>\n                            <div class=\"span1\">\n                                <h3 class=\"item-title\">").concat(el.name, "</h3>\n                                <p class=\"item-text\">").concat(el.address, "</p>\n                                <p class=\"item-text\">").concat(el.distance, "\u516C\u91CC</p>\n                            </div>\n                            <span class=\"price\"><i>\uFFE5</i>").concat(el.price, "</span>\n                        </li>");
              });
              return html;
            }
          });
        }
      };
      pageview.init();
    });
  }, {}]
}, {}, [1]);
},{}]},{},[1]);
